package com.osdp.sc.entity;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.osdp.common.constant.CommonConstant;
import com.osdp.common.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * 租户实体
 */
@Data
@NoArgsConstructor
@TableName("sc_tenant")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class ScTenant extends BaseEntity {
    public static final String ENABLE = "1";

    public static final String DISABLE = "0";

    public static final String DELETED = "1";

    public static final String UNDELETED = "0";

    /**
     * 企业名字
     */
    private String compName;
    /**
     * 企业联系人
     */
    private String compUserName;
    /**
     * 企业联系人电话
     */
    private String compUserTel;

    /**
     * APPID
     */
    private String appId;

    /**
     * 租户标志性 唯一
     */
    private String tenantCode;

    /**
     * 密钥
     */
    private String appSecret;

    /**
     * 数据是否有效， 0 无效 1 有效
     */
    private String validation;

    /**
     * "删除状态（0，正常，1已删除）"
     */
//    @TableLogic
//    private Integer delFlag;
    /**
     * 判断是否删除
     *
     * @return
     */
//    public boolean deleted() {
//        return delFlag == CommonConstant.FLAG_ONE_1;
//    }
}
